package com.chushouya.order.dto.partner.order;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 订单提交DTO
 */
@Data
@ApiModel(value = "订单提交DTO")
public class OrderSubmitPartnerDTO {

    @ApiModelProperty(value = "地址信息", required = true)
    @NotNull(message = "地址信息不能为空")
    @Valid
    private AddressInfoPartnerDTO addressInfo;

    @ApiModelProperty(value = "交易方式")
    @NotNull(message = "交易方式不能为空")
    private Integer orderType;

    @ApiModelProperty(value = "评估ID", required = true)
    @NotBlank(message = "评估ID不能为空")
    private String evaluateId;

    @ApiModelProperty(value = "预约开始时间", required = true, example = "2025-07-26 10:00:00")
    @NotBlank(message = "预约开始时间不能为空")
    private String appointStartTime;

    @ApiModelProperty(value = "预约结束时间", required = true, example = "2025-07-26 12:00:00")
    @NotBlank(message = "预约结束时间不能为空")
    private String appointEndTime;

    @ApiModelProperty(value = "渠道", required = true)
    @NotBlank(message = "渠道不能为空")
    private String channel;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "通知回调地址")
    private String notifyUrl;
}
